<?php

Route::group([], function (\Illuminate\Routing\Router $router) {

    $router->any('list', 'NewsController@getNewsList');
    $router->any('newsCate', 'NewsController@newCate');

    $router->any('comment/list', 'NewsController@getComment');
    $router->any('notice', 'NewsController@getNotice');
    $router->any('notice/detail', 'NewsController@getNoticeDetail');

});

Route::group([
    'middleware' => 'jwt.auth',
], function (\Illuminate\Routing\Router $router) {

    $router->any('detail', 'NewsController@getNewsDetail');
    $router->post('comment', 'NewsController@setComment');

});